package com.benyanyi.picker;

import android.content.Context;

/**
 * @author YanYi
 * @date 2020/6/24 15:25
 * @email ben@yanyi.red
 * @overview
 */
class DimensUtils {

    /**
     * dp转px
     */
    static int dip2px(Context context, float dipValue) {
        float scale = context.getResources().getDisplayMetrics().density;
        return (int) (dipValue * scale + 0.5f);
    }
}
